﻿using HikVisionTool.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HikVisionTool.DAL
{
    public class UserDAL
    {
        private Sql2Helper sql2Helper = new Sql2Helper();
        public Sql2Helper.t_DD_UserDetail GetUser(string jobnumber)
        {
            try
            {
                return sql2Helper.db.Queryable<Sql2Helper.t_DD_UserDetail>().Where(it => it.jobnumber == jobnumber && it.companyName == "重庆盟讯电子科技有限公司").First();
            }
            catch (Exception ex)
            {
                throw ex; 
            }
        }
    }
}
